import { WeaTools } from 'ecCom';

export const getSeachTable = params => {
  return WeaTools.callApi('/api/fullsearch/robot/getList', 'POST', params);
};

export const getSeachCustomTable = params => {
  return WeaTools.callApi('/api/fullsearch/robot/getFields', 'POST', params);
};

export const getCustompageBaseDatas = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/getBaseData', 'POST', params);
};
 
export const doSaveSearchTag = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/doSaveSearchTag', 'POST', params);
};

export const doSaveHistorySearch = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/doSaveHistorySearch', 'POST', params);
};

export const delSearchTag = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/delSearchTag', 'POST', params);
};
 
export const delHistorySearch = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/delHistorySearch', 'POST', params);
};

export const getCusPageSetDtl = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/getCusPageSetDtl', 'POST', params);
};

export const getCusPageSetList = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/getCusPageSetList', 'POST', params);
}; 

export const doSaveCusPageSetDtl = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/doSaveCusPageSetDtl', 'POST', params);
};

export const getSearchTagList = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/getSearchTagList', 'POST', params);
};

export const getSearchTagDtl = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/getSearchTagDtl', 'POST', params);
};

export const delCusPageSet = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/delCusPageSet', 'POST', params);
};

export const showAndHideSearchTag = params => {
  return WeaTools.callApi('/api/fullsearch/custompage/showAndHideSearchTag', 'POST', params);
};